exports.panel=function(_arg)
{
	var pathimage=Ti.App.Properties.getString('pathimage');
	var view = Ti.UI.createView({
		width:_arg.width,
		height:_arg.height,
		backgroundColor:'Transparent',//_arg.backgroundColor,	
		//backgroundImage:_arg.backgroundImage,
		top:_arg.top,
		left:_arg.left,
		//borderRadius : 10.0,
    	//borderColor : '#724b37',
    	
	})
	
	var bt = Ti.UI.createImageView({
		left:0,
		width:_arg.height,
		height:_arg.height,
		image:_arg.backgroundImage,
		
	})
	view.add(bt)
	
	view.addEventListener('click',function(e){
		Ti.App.fireEvent(_arg.even)	
	})
	view.addEventListener('touchstart',function(e){
		bt.backgroundImage=_arg.backgroundSelectedImage
	})
	view.addEventListener('touchend',function(e){
		bt.backgroundImage=_arg.backgroundImage
	})
	view.addEventListener('touchcancel',function(e){
		bt.backgroundImage=_arg.backgroundImage
	})

	var lb = Ti.UI.createLabel({
		left:bt.height+20,
		text:_arg.title,
		color:'#724b37',
		font:{
				fontSize:30,//Ti.App.Properties.getInt('fontsize_header'),// 14,
				fontWeight:'bold',
		},
	})
	view.add(lb)
	
	var vi_line = Titanium.UI.createView({
		bottom:0,
		width:'100%',
		height:3,
		backgroundImage: pathimage+'img_devide_line_setting.png',
	}); 
	view.add(vi_line)
	
	return view;
}
